//
//  WmcAlbumModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/5/19.
//

import UIKit
import HandyJSON

struct WmcAlbumModel: YPNetworkJsonProtocol {
    enum PhotoType {
        case none
        case allPhoto
        case watermarkPhoto
    }

    /// 封面图片地址
    var img: String = ""

    /// 照片数量
    var num: Int = 0

    /// 相册标题
    var title: String = ""

    /// 相册类型
    var type: String = ""
    
    func typeEnum() -> PhotoType {
        if type == "all" {
            return .allPhoto
        } else if type == "wmc" {
            return .watermarkPhoto
        } else {
            return .none
        }
    }
}
